<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>羊了个羊</title>
    <link rel="stylesheet" href="sheep-game.css" />
  </head>
  <body>
    <div class="container">
      <header>
        <h1>羊了个羊</h1>
        <div class="game-info">
          <div class="level">当前关卡: <span id="current-level">1</span></div>
          <div class="moves">剩余步数: <span id="moves-left">15</span></div>
          <div class="timer">时间: <span id="time">00:00</span></div>
        </div>
        <div class="controls">
          <button id="start">开始游戏</button>
          <button id="restart">重新开始</button>
        </div>
      </header>

      <div class="game-container">
        <div id="game-board" class="game-board"></div>
        <div id="slot-container" class="slot-container">
          <div id="slots" class="slots"></div>
        </div>
      </div>

      <div id="level-complete" class="modal">
        <div class="modal-content">
          <h2>恭喜！</h2>
          <p>你完成了第 <span id="completed-level">1</span> 关！</p>
          <p>用时: <span id="final-time">00:00</span></p>
          <p>剩余步数: <span id="final-moves">0</span></p>
          <button id="next-level">进入下一关</button>
        </div>
      </div>

      <div id="game-over" class="modal">
        <div class="modal-content">
          <h2>游戏结束</h2>
          <p>很遗憾，你没能通过这一关！</p>
          <p>用时: <span id="game-over-time">00:00</span></p>
          <button id="try-again">再试一次</button>
        </div>
      </div>

      <div id="game-complete" class="modal">
        <div class="modal-content">
          <h2>游戏通关！</h2>
          <p>恭喜你完成了所有关卡！</p>
          <p>总用时: <span id="total-time">00:00</span></p>
          <button id="play-again">再玩一次</button>
        </div>
      </div>
    </div>

    <script src="sheep-game.js"></script>
  </body>
</html>